package com.guanzi.big_data_mq_process.model.dto;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (OrderDetails)DTO 保存类
 *
 * @author xuguang
 * @since 2025-05-06 21:57:44
 */
@Data
@NoArgsConstructor
public class OrderDetailsDTO implements Serializable {

    private Integer orderDetailId;

    private Integer orderId;

    private String productName;

    private Integer quantity;

    private BigDecimal price;

    public OrderDetailsDTO(String productName, Integer quantity, BigDecimal price) {
        this.productName = productName;
        this.quantity = quantity;
        this.price = price;
    }

}
